<template>
  <j-modal :title="title" :width="width" :visible="visible" switchFullscreen @cancel="handleCancel" cancelText="关闭">
    <HfBomCreate ref="realForm" :disabled="disableSubmit"></HfBomCreate>
  </j-modal>
</template>

<script>
import '@/assets/less/TableExpand.less'
import HfBomCreate from './HfBomCreate'

export default {
  name: 'HfBomCreateModal',
  components: {
    HfBomCreate
  },
  data() {
    return {
      description: 'BOM关联生成单',
      title: '',
      width: 896,
      visible: false,
      disableSubmit: false
    }
  },
  methods: {
    open(record) {
      this.visible = true
      this.$nextTick(() => {
        this.$refs.realForm.openList(record)
      })
    },
    close() {
      this.$emit('close')
      this.visible = false
    },
    handleCancel() {
      this.close()
    }
  }
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
